package com.ruoyix.alipay.service;

import cn.hutool.json.JSONObject;
import com.alipay.api.AlipayApiException;
import com.ruoyix.alipay.domain.AliPay;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface AliPayService {

    public void pcPay(AliPay aliPay, HttpServletResponse httpResponse) throws IOException;

    public String payQrCode(AliPay aliPay, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws AlipayApiException;

    public String payNotify(HttpServletRequest request) throws Exception;


    public JSONObject queryTrade(AliPay aliPay) throws AlipayApiException;


    public JSONObject TradeRefund(AliPay aliPay) throws AlipayApiException;

}
